package com.carAnalysisAdmin.system.domain;

import java.math.BigDecimal;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonBackReference;
import com.fasterxml.jackson.annotation.JsonIdentityInfo;
import com.fasterxml.jackson.annotation.ObjectIdGenerators;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.carAnalysisAdmin.common.annotation.Excel;
import com.carAnalysisAdmin.common.core.domain.BaseEntity;

/**
 * 车位对象 sys_park_spot
 * 
 * @author ruoyi
 * @date 2024-04-14
 */
//@JsonIdentityInfo(
//        generator = ObjectIdGenerators.PropertyGenerator.class,
//        property = "id"
//)
public class SysParkSpot extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 车位编号 */
    private Integer id;

    /** 楼层编号 */
    @Excel(name = "楼层编号")
    private Integer floorId;
    @JsonBackReference
    private SysParkFloor sysParkFloor;

    /** 停车位编号 */
    @Excel(name = "停车位编号")
    private String code;

    /** 停车价格 */
    @Excel(name = "停车价格")
    private BigDecimal price;

    /** 可用状态 */
    @Excel(name = "可用状态")
    private String isLock;
    private Long userId;
    private String userName;
    private String userAvatar;
    private String isHaveUser;

    public String getIsHaveUser() {
        return isHaveUser;
    }

    public void setIsHaveUser(String isHaveUser) {
        this.isHaveUser = isHaveUser;
    }

    public void setSysParkFloor(SysParkFloor sysParkFloor) {
        this.sysParkFloor = sysParkFloor;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getUserAvatar() {
        return userAvatar;
    }

    public void setUserAvatar(String userAvatar) {
        this.userAvatar = userAvatar;
    }

    public void setId(Integer id)
    {
        this.id = id;
    }

    public Integer getId()
    {
        return id;
    }
    public void setFloorId(Integer floorId)
    {
        this.floorId = floorId;
    }

    public Integer getFloorId()
    {
        return floorId;
    }
    public void setCode(String code)
    {
        this.code = code;
    }

    public String getCode()
    {
        return code;
    }
    public void setPrice(BigDecimal price) 
    {
        this.price = price;
    }

    public BigDecimal getPrice() 
    {
        return price;
    }
    public void setIsLock(String isLock) 
    {
        this.isLock = isLock;
    }

    public String getIsLock() 
    {
        return isLock;
    }

    public SysParkFloor getSysParkFloor() {
        return sysParkFloor;
    }

    public void setParkFloor(SysParkFloor sysParkFloor) {
        this.sysParkFloor = sysParkFloor;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("floorId", getFloorId())
            .append("code", getCode())
            .append("price", getPrice())
            .append("isLock", getIsLock())
            .toString();
    }
}
